<?php

use Encore\Admin\Facades\Admin;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Admin::registerAuthRoutes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    //'namespace'     => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'App\Admin\Controllers\HomeController@index');

    $router->resource("qr-poster", "App\Admin\Controllers\QrPosterController");

    $router->resource('tags', 'App\Admin\Controllers\TagController');
    $router->resource('categories', 'App\Admin\Controllers\CategoriesController');
    $router->resource('ad-position-id', 'App\Admin\Controllers\AdPositionIdController');

    $router->resource('docs', 'App\Admin\Controllers\DocController');
    $router->any('docs-action/check', 'App\Admin\Controllers\DocController@check')->name('admin.doc-check');


    $router->resource('ads', 'App\Admin\Controllers\AdController');
    $router->resource('user-buy-order', 'App\Admin\Controllers\UserBuyOrderController');

    $router->get('user-buy-order-more/order_action', 'App\Admin\Controllers\UserBuyOrderController@order_action')->name('user-buy-order-order_action');
    $router->resource('users', 'App\Admin\Controllers\UserController');
    $router->any('user-edit_money', 'App\Admin\Controllers\UserController@edit_money')->name('user-edit_money');


    $router->get('withdraw', 'App\Admin\Controllers\WithdrawController@index');
    $router->get('withdraw/ckeck', 'App\Admin\Controllers\WithdrawController@ckeck')->name("admin-withdraw-check");
    $router->post('withdraw/check_data', 'App\Admin\Controllers\WithdrawController@check_data')->name("admin-withdraw-check-data");


    $router->resource('feedback','App\Admin\Controllers\FeedBackController');

    $router->resource("money-log", "App\Admin\Controllers\MoneyLogController");
});
